﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200130D RID: 4877
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncTaskCsReq : IMessage<SyncTaskCsReq>, IMessage, IEquatable<SyncTaskCsReq>, IDeepCloneable<SyncTaskCsReq>, IBufferMessage
	{
		// Token: 0x17003D8E RID: 15758
		// (get) Token: 0x0600DA57 RID: 55895 RVA: 0x00249324 File Offset: 0x00247524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncTaskCsReq> Parser
		{
			get
			{
				return SyncTaskCsReq._parser;
			}
		}

		// Token: 0x17003D8F RID: 15759
		// (get) Token: 0x0600DA58 RID: 55896 RVA: 0x0024932B File Offset: 0x0024752B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncTaskCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D90 RID: 15760
		// (get) Token: 0x0600DA59 RID: 55897 RVA: 0x0024933D File Offset: 0x0024753D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncTaskCsReq.Descriptor;
			}
		}

		// Token: 0x0600DA5A RID: 55898 RVA: 0x00249344 File Offset: 0x00247544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTaskCsReq()
		{
		}

		// Token: 0x0600DA5B RID: 55899 RVA: 0x00249357 File Offset: 0x00247557
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTaskCsReq(SyncTaskCsReq other) : this()
		{
			this.key_ = other.key_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DA5C RID: 55900 RVA: 0x0024937C File Offset: 0x0024757C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTaskCsReq Clone()
		{
			return new SyncTaskCsReq(this);
		}

		// Token: 0x17003D91 RID: 15761
		// (get) Token: 0x0600DA5D RID: 55901 RVA: 0x00249384 File Offset: 0x00247584
		// (set) Token: 0x0600DA5E RID: 55902 RVA: 0x0024938C File Offset: 0x0024758C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Key
		{
			get
			{
				return this.key_;
			}
			set
			{
				this.key_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600DA5F RID: 55903 RVA: 0x0024939F File Offset: 0x0024759F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncTaskCsReq);
		}

		// Token: 0x0600DA60 RID: 55904 RVA: 0x002493AD File Offset: 0x002475AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncTaskCsReq other)
		{
			return other != null && (other == this || (!(this.Key != other.Key) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DA61 RID: 55905 RVA: 0x002493E0 File Offset: 0x002475E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Key.Length != 0)
			{
				num ^= this.Key.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DA62 RID: 55906 RVA: 0x00249421 File Offset: 0x00247621
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DA63 RID: 55907 RVA: 0x00249429 File Offset: 0x00247629
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DA64 RID: 55908 RVA: 0x00249432 File Offset: 0x00247632
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Key.Length != 0)
			{
				output.WriteRawTag(122);
				output.WriteString(this.Key);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DA65 RID: 55909 RVA: 0x0024946C File Offset: 0x0024766C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Key.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Key);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DA66 RID: 55910 RVA: 0x002494AF File Offset: 0x002476AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncTaskCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Key.Length != 0)
			{
				this.Key = other.Key;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DA67 RID: 55911 RVA: 0x002494E5 File Offset: 0x002476E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DA68 RID: 55912 RVA: 0x002494F0 File Offset: 0x002476F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 122U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Key = input.ReadString();
				}
			}
		}

		// Token: 0x040056D3 RID: 22227
		private static readonly MessageParser<SyncTaskCsReq> _parser = new MessageParser<SyncTaskCsReq>(() => new SyncTaskCsReq());

		// Token: 0x040056D4 RID: 22228
		private UnknownFieldSet _unknownFields;

		// Token: 0x040056D5 RID: 22229
		public const int KeyFieldNumber = 15;

		// Token: 0x040056D6 RID: 22230
		private string key_ = "";
	}
}
